package com.ego.pojo.vo;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.List;

/**
 * @author Ares
 * @date 2020-11-20
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
public class ResultVO<T> {
    private List<T> items;
    private Long total;
    private Integer page;
    private Integer rows;

    public ResultVO(List<T> items, Long total) {
        this.items = items;
        this.total = total;
    }

    public ResultVO(Integer page, Integer rows) {
        this.page = page;
        this.rows = rows;
    }
}
